/**
 * Created by baidm in 2022/8/16 on 15:15
 */
import axios from "axios";

export default class HttpCommon {
  constructor() {
    this.http = axios.create({
      baseURL: "",
      transformRequest: () => {

      },
      transformResponse: () => {

      }
    })
  }

  get(url) {
    return this.http.get(url)
  }

  post(url, params) {
    return this.http.post(url, JSON.stringify(params))
  }

}
